package com.yeyks.common.em;

public enum CashOutOrderStatus {
    pre_check(1, "待审核"),
    check_pass(2, "审核通过"),
    check_no_pass(3, "审核未通过"),
    fail(4, "失败");
    int value;
    String desc;

    CashOutOrderStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer value() {
        return this.value;
    }

    public String desc() {
        return this.desc;
    }

    public static String getDesc(int value) {
        for (CashOutOrderStatus orderStatusEnum : values()) {
            if (orderStatusEnum.value() == value) {
                return orderStatusEnum.desc();
            }
        }
        return null;
    }
}